package com.example.qxfw.qxzs.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 预报数据
 */
@Data
public class StationYbDto {

    public StationYbDto(){
        fState1 = 0;				//预报天空状况
        fWindDirection1 = 1;		//预报风向
        fState2 = 0;				//预报天空状况
        fWindDirection2 = 1;		//预报风向
        fTemperatureLow = -0.5;		//预报最低气温
        fTemperatureHigh = 6;		//预报最高气温
        fWindSpeedLow = 0;		//预报风速12小时
        fWindSpeedHigh = 0;	    //预报风速24小时
        fWetnessLow = 1;			    //预报12小时相对湿度
        fWetnessHigh = 0;			//预报24小时相对湿度
        fPressure = 0;				//预报平均气压
        fCloudLow = 0;				//预报低云量
        fCloudAll = 0;				//预报平均总云量
        fPrecipitationrate = 0;		//预报降水概率
        fPrecipitation =0;			//预报日降水量
        this.fColdFront = new Date();;
    }

    public int fState1;				//预报天空状况
    public int fWindDirection1;		//预报风向
    public int fState2;				//预报天空状况
    public int fWindDirection2;		//预报风向
    public double fTemperatureLow;		//预报最低气温
    public double fTemperatureHigh;		//预报最高气温
    public double fWindSpeedLow;			//预报最低风速
    public double fWindSpeedHigh;			//预报最高风速
    public int fWetnessLow;			//预报最低相对湿度
    public int fWetnessHigh;			//预报最高相对湿度
    public int fPressure;				//预报平均气压
    public int fCloudLow;				//预报低云量
    public int fCloudAll;				//预报平均总云量
    public int fPrecipitationrate;		//预报降水概率
    public int fPrecipitation;			//预报日降水量
    @DateTimeFormat( pattern = "dd-MM-yyyy")
    @JsonFormat(timezone = "GMT+8", pattern = "dd-MM-yyyy")
    public Date fColdFront;				//冷锋过境日期
}
